package com.hnevc.myspeaker.entity;

import java.io.Serializable;

public class Product implements Serializable {
    private int productId;
    private int categoryId;
    private String productName;
    private String productPic;
    private String description;
    private float price;
    private int comments;

    @Override
    public String toString() {
        return "Product{" +
                "productId=" + productId +
                ", categoryId=" + categoryId +
                ", productName='" + productName + '\'' +
                ", productPic='" + productPic + '\'' +
                ", description='" + description + '\'' +
                ", price=" + price +
                ", comments=" + comments +
                '}';
    }

    public int getProductId() {
        return productId;
    }

    public void setProductId(int productId) {
        this.productId = productId;
    }

    public int getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(int categoryId) {
        this.categoryId = categoryId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public int getComments() {
        return comments;
    }

    public void setComments(int comments) {
        this.comments = comments;
    }

    public Product(int categoryId, String productName, String productPic, String description, float price, int comments) {
        this.categoryId = categoryId;
        this.productName = productName;
        this.productPic = productPic;
        this.description = description;
        this.price = price;
        this.comments = comments;
    }

    public Product(int productId, int categoryId, String productName, String productPic, String description, float price, int comments) {
        this.productId = productId;
        this.categoryId = categoryId;
        this.productName = productName;
        this.productPic = productPic;
        this.description = description;
        this.price = price;
        this.comments = comments;
    }

    public String getProductPic() {
        return productPic;
    }

    public void setProductPic(String productPic) {
        this.productPic = productPic;
    }
}
